Skip to content

fix: add missing spinBox indicatorWidth and indicatorSpacing - #753

Closed
pengfeixx wants to merge 1 commit into
linuxdeepin:masterfrom
pengfeixx:agent/bugfix/341599
Closed

pengfeixx wants to merge 1 commit into
linuxdeepin:masterfrom
pengfeixx:agent/bugfix/341599

Conversation

@pengfeixx

@pengfeixx pengfeixx commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

fix: add missing spinBox indicatorWidth and indicatorSpacing

  1. Root cause: FlowStyle.qml spinBox QtObject never defined
    indicatorWidth/indicatorSpacing, causing SpinBoxIndicator and
    SpinBox to read undefined values for button width and spacing
  2. Fix: add indicatorWidth: 24 (matches indicator.width) and
    indicatorSpacing: 0 to both Qt6 and Qt5 FlowStyle.qml
  3. Impact: SpinBox indicator buttons render at correct width with
    centered icons; no effect on other controls

Log: Fix SpinBox indicator button icon alignment issue

Influence:

  1. Test SpinBox indicator button icon is centered
  2. Test SpinBox up/down buttons display correctly
  3. Verify no regression on other Style properties

fix: 补充 spinBox 缺失的 indicatorWidth 和 indicatorSpacing 属性

  1. 根因:FlowStyle.qml 中 spinBox QtObject 从未定义
    indicatorWidth/indicatorSpacing 属性,导致 SpinBoxIndicator
    和 SpinBox 读取到 undefined 值
  2. 方案:在 Qt6 和 Qt5 的 FlowStyle.qml 中添加 indicatorWidth: 24
    (与 indicator.width 一致)和 indicatorSpacing: 0
  3. 影响:SpinBox 指示器按钮按正确宽度渲染,图标居中显示;
    不影响其他控件

Log: 修复 SpinBox 指示器按钮图标偏左问题

Influence:

  1. 测试 SpinBox 指示器按钮图标居中显示
  2. 测试 SpinBox 上下按钮显示正常
  3. 验证其他 Style 属性无回归

PMS: BUG-341599

Summary by Sourcery

Bug Fixes:

  • Fix SpinBox indicator button sizing and icon alignment by defining the missing indicator width and spacing properties in both Qt5 and Qt6 styles.

1. Root cause: FlowStyle.qml spinBox QtObject never defined
   indicatorWidth/indicatorSpacing, causing SpinBoxIndicator and
   SpinBox to read undefined values for button width and spacing
2. Fix: add indicatorWidth: 24 (matches indicator.width) and
   indicatorSpacing: 0 to both Qt6 and Qt5 FlowStyle.qml
3. Impact: SpinBox indicator buttons render at correct width with
   centered icons; no effect on other controls

Log: Fix SpinBox indicator button icon alignment issue

Influence:
1. Test SpinBox indicator button icon is centered
2. Test SpinBox up/down buttons display correctly
3. Verify no regression on other Style properties

fix: 补充 spinBox 缺失的 indicatorWidth 和 indicatorSpacing 属性

1. 根因:FlowStyle.qml 中 spinBox QtObject 从未定义
   indicatorWidth/indicatorSpacing 属性,导致 SpinBoxIndicator
   和 SpinBox 读取到 undefined 值
2. 方案:在 Qt6 和 Qt5 的 FlowStyle.qml 中添加 indicatorWidth: 24
   (与 indicator.width 一致)和 indicatorSpacing: 0
3. 影响:SpinBox 指示器按钮按正确宽度渲染,图标居中显示;
   不影响其他控件

Log: 修复 SpinBox 指示器按钮图标偏左问题

Influence:
1. 测试 SpinBox 指示器按钮图标居中显示
2. 测试 SpinBox 上下按钮显示正常
3. 验证其他 Style 属性无回归

PMS: BUG-341599
@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pengfeixx

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pengfeixx
pengfeixx marked this pull request as draft November 13, 2026 19:34
@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

UI

Add the missing SpinBox indicator width and spacing properties to both Qt5 and Qt6 styles so the indicator buttons render at the intended size.

  • qt6/src/qml/FlowStyle.qml L562-563
  • src/qml/FlowStyle.qml L519-520

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

Copy link
Copy Markdown
Contributor

CLA Assistant Lite bot:

如果你是以企业贡献者的身份进行提交,请联系我们签署企业贡献者许可协议
If you submit as corporate contributor, please contact us to sign our Corporate Contributor License Agreement

感谢您的提交,我们非常感谢。 像许多开源项目一样,在接受您的贡献之前,我们要求您签署我们的个人贡献者许可协议。 您只需发布与以下格式相同的评论即可签署个人贡献者许可协议。
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Individual Contributor License Agreement before we can accept your contribution. You can sign the Individual Contributor License Agreement by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA.

shuttle slave seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-bot

deepin-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.7.54
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #756

@pengfeixx pengfeixx closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants